You are here

public function BlazyBreakpointTest::providerTestWidthFromDescriptors in Blazy 7

Provide test cases for ::testWidthFromDescriptors().

1 call to BlazyBreakpointTest::providerTestWidthFromDescriptors()
BlazyBreakpointTest::testWidthFromDescriptors in tests/BlazyBreakpoint.test
Test widthFromDescriptors.

File

tests/BlazyBreakpoint.test, line 63

Class

BlazyBreakpointTest
Tests the Blazy breakpoints.

Code

public function providerTestWidthFromDescriptors() {
  return [
    [
      1024,
      1024,
    ],
    [
      '1024',
      1024,
    ],
    [
      '769w',
      769,
    ],
    [
      '640w 2x',
      640,
    ],
    [
      '2x 640w',
      640,
    ],
    [
      'xYz123',
      FALSE,
    ],
  ];
}